<!--
    (c) 2007, Stephane Alnet
    
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    as published by the Free Software Foundation; either version 3
    of the License, or (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->

<!-- Also needs span_${S}_ for the given group -->
<!-- We may have a signalling group covering multiple spans: NFAS, SS7 -->
<!-- Conversely, for channel-associated, we need to make sure the timeslot group covers the whole span -->

<!--

    This page deals with CAS voice signaling, basically T1 CAS and E1 / R2.
    In this case, <TMPL_VAR NAME="ts_group"> == 1 and uses all timeslots on the span.

-->

<div <TMPL_VAR NAME="ts_group">_signaling_type="cas">
    <fieldset>
        <legend>Channel Associated (CAS)</legend>

        <p>
            <label for="<TMPL_VAR NAME="ts_group">_signalling_cas">Signaling</label>
            <select name="<TMPL_VAR NAME="ts_group">_signalling_cas" id="<TMPL_VAR NAME="ts_group">_signalling_cas">
                <!-- T1 CAS signaling -->
                <option value="em"      <TMPL_VAR NAME="ts_group">_signaling_type="cas" is_default="true">E&amp;M</option>
                <option value="em_w"    <TMPL_VAR NAME="ts_group">_signaling_type="cas">E&amp;M Wink</option>
                <option value="fxs_ls"  <TMPL_VAR NAME="ts_group">_signaling_type="cas">FXS Loop Start</option>
                <option value="fxs_gs"  <TMPL_VAR NAME="ts_group">_signaling_type="cas">FXS Ground Start</option>
                <option value="fxs_ks"  <TMPL_VAR NAME="ts_group">_signaling_type="cas">FXS Kewl Start</option>
                <option value="fxo_ls"  <TMPL_VAR NAME="ts_group">_signaling_type="cas">FXO Loop Start</option>
                <option value="fxo_gs"  <TMPL_VAR NAME="ts_group">_signaling_type="cas">FXO Ground Start</option>
                <option value="fxo_ks"  <TMPL_VAR NAME="ts_group">_signaling_type="cas">FXO Kewl Start</option>
            </select>
        </p>
        <!--
            ; featd:          Feature Group D (The fake, Adtran style, DTMF)
            ; featdmf:        Feature Group D (The real thing, MF (domestic, US))
            ; featdmf_ta:     Feature Group D (The real thing, MF (domestic, US)) through
            ;                 a Tandem Access point
            ; featb:          Feature Group B (MF (domestic, US))
            ; gr303fxoks_net: GR-303 Signalling, FXO Loopstart, Network side
            ; gr303fxsks_cpe: GR-303 Signalling, FXS Loopstart, CPE side
            ; sf:             SF (Inband Tone) Signalling
            ; sf_w:           SF Wink
            ; sf_featd:       SF Feature Group D (The fake, Adtran style, DTMF)
            ; sf_featdmf:     SF Feature Group D (The real thing, MF (domestic, US))
            ; sf_featb:       SF Feature Group B (MF (domestic, US))
            ; e911:           E911 (MF) style signalling
        -->
        <!--
            ;defaultozz=0000
            ;defaultcic=303
        -->

        <p>
            <label  for="<TMPL_VAR NAME="ts_group">_prewink">Pre-wink timer (ms)</label>
            <input name="<TMPL_VAR NAME="ts_group">_prewink" id="<TMPL_VAR NAME="ts_group">_prewink" type="text" default_value="50"></input>
        </p>                                       
        <p>                                        
            <label  for="<TMPL_VAR NAME="ts_group">_preflash">Pre-flash timer (ms)</label>
            <input name="<TMPL_VAR NAME="ts_group">_preflash" id="<TMPL_VAR NAME="ts_group">_preflash" type="text" default_value="50"></input>
        </p>                                       
        <p>                                        
            <label  for="<TMPL_VAR NAME="ts_group">_flash">Flash timer (ms)</label>
            <input name="<TMPL_VAR NAME="ts_group">_flash" id="<TMPL_VAR NAME="ts_group">_flash" type="text" default_value="750"></input>
        </p>                                       
        <p>                                        
            <label  for="<TMPL_VAR NAME="ts_group">_start">Start timer (ms)</label>
            <input name="<TMPL_VAR NAME="ts_group">_start" id="<TMPL_VAR NAME="ts_group">_start" type="text" default_value="1500"></input>
        </p>                                       
        <p>                                        
            <label  for="<TMPL_VAR NAME="ts_group">_rxwink">Receiver wink timer (ms)</label>
            <input name="<TMPL_VAR NAME="ts_group">_rxwink" id="<TMPL_VAR NAME="ts_group">_rxwink" type="text" default_value="300"></input>
        </p>                                       
        <p>                                        
            <label  for="<TMPL_VAR NAME="ts_group">_rxflash">Receiver flash timer (ms)</label>
            <input name="<TMPL_VAR NAME="ts_group">_rxflash" id="<TMPL_VAR NAME="ts_group">_rxflash" type="text" default_value="1250"></input>
        </p>                                       
        <p>                                        
            <label  for="<TMPL_VAR NAME="ts_group">_debounce">Debounce timer (ms)</label>
            <input name="<TMPL_VAR NAME="ts_group">_debounce" id="<TMPL_VAR NAME="ts_group">_debounce" type="text" default_value="600"></input>
        </p>
    </fieldset>
</div>
